﻿<!doctype html>
 <html >
 <head>
   <meta charset="UTF-8">
   <link rel="stylesheet" href="../../../css/common.css">
   <link rel="stylesheet" href="../../../css/main.css">
   <script type="text/javascript" src="../../../js/jquery.min.js"></script>
   <script type="text/javascript" src="../../../js/colResizable-1.3.min.js"></script>
   <script type="text/javascript" src="../../../js/common.js"></script>
</head>

<body>
  <div id="forms" class="mt10">
        <div class="box">
          <div class="box_border">
            <div class="box_top"><b class="pl15">编辑角色</b></div>
            <div class="box_center">
              <form action="/resource/system/role/edit" class="jqtransform">
               <table class="form_table pt15 pb15" width="100%" border="0" cellpadding="0" cellspacing="0">
                 <tr>
                  <td class="td_right">角色名称：</td>
                  <td class="">
                      <input type="hidden" name="roleId" value="${role.roleId}">
                      <input type="text" name="roleName" class="input-text lh30" size="40" value="${role.roleName}"/>
                  </td>
				  </tr>
				  <tr>
                  <td class="td_right">备注：</td>
				  <td> <textarea name="roleDesc" id="" cols="30" rows="10" class="textarea">${role.roleDesc}</textarea></td>
                </tr>
                 <tr>
                  <td class="td_right">状态：</td>
                  <td class="">
                      <input type="radio" name="roleStatus"  <#if (role.roleStatus==1)>checked </#if> value="1" /> 启用
                      <input type="radio" name="roleStatus" <#if (role.roleStatus==0)>checked </#if> value="0"/> 禁用
                  </td>
                 </tr>
                 
                <tr>
                  <td class="td_right">权限：</td>
                  <td class="">
                      <#list menu as m>
                          <#if (m.superMenuId==0)>
                              <#--1、一级菜单-->
                              <input type="checkbox" name="menuId"
                              <#list oldMenu as old>
                                  <#if (old.menuId==m.menuId) >
                                        checked
                                  </#if>
                              </#list>
                              value="${m.menuId}">${m.menuName}<br/>

                              <#list m.menus as second>
                              <#--2、二级菜单-->
                                  &nbsp;&nbsp;<input type="checkbox" name="menuId"
                                      <#list oldMenu as old>
                                          <#list old.menus as sec>
                                              <#if (sec.menuId== second.menuId) >
                                                  checked
                                              </#if>
                                          </#list>
                                      </#list>
                                     value="${second.menuId}">${second.menuName}<br/>
                              </#list>
                          </#if>
                      </#list>
				  </td>
                 </tr>
                 <tr>
                   <td class="td_right">&nbsp;</td>
                   <td class="">
                     <input type="submit" name="button" class="btn btn82 btn_save2" value="提交"/>
                    <input type="button" name="button" class="btn btn82 btn_res" onclick="location.href='javascript:history.go(-1)'" value="返回"/>
                   </td>
                 </tr>
               </table>
               </form>
            </div>
          </div>
        </div>
     </div>
   </div> 
</body>

</html>